import { defineStore } from "pinia";
import { ref } from "vue";
export const useCounterStore=defineStore('user',()=>{
    let piniaUser=ref([])
    piniaUser.value={
        username:localStorage.getItem('username'),
        nickname:'阮澜烛',
        email:'332438675@qq.com',
        srcimg:'https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg'
    }
    return{piniaUser}
},{
    persist:true
})